package com.itheima;

import java.util.Random;

public class Cover {
    public static void main(String[] args) {
        int[] arr = new int[5];
        arr[0] = (int)(Math.random()*100);
        arr[1] = (int)(Math.random()*100);
        arr[2] = (int)(Math.random()*100);
        arr[3] = (int)(Math.random()*100);
        arr[4] = (int)(Math.random()*100);
        for (int i = 0; i < 5; i++) {
            System.out.println(arr[i]);
        }
        System.out.println("以上是正序");
        for (int i =arr.length; i >0 ; i--) {
            System.out.println(arr[i-1]);
        }
        System.out.println("以上是倒序");
    }
}
